// import { pathEnum } from '@/enums/pathEnums'
import type { RouteRecordRaw } from 'vue-router'

const routerList: RouteRecordRaw[] = [
    {
        path: '/',
        component: () => import('@/components/pages/shujuguanli/layout/MainLayout.vue'),
        redirect: '/shujuguanli',
        // redirect: '/MonitorPlantform',
        children: [
            {
                path: '/wodediqiu',
                component: () =>
                    import('@/components/pages/shujuguanli/pages/wodediqiu/index.vue'),
                meta: {
                    requiresAuth: true,
                },
            },
            {
                path: '/shujuguanli',
                // TODO: 这种路径可以不写全路径么
                redirect: '/shujuguanli/yingxiangliebiao',
                component: () =>
                    import('@/components/pages/shujuguanli/layout/BakLayout.vue'),
                children: [
                    {
                        path: '/shujuguanli/yingxiangliebiao',
                        component: () =>
                            import(
                                '@/components/pages/shujuguanli/pages/yingxiangliebiao/index.vue'
                            ),
                    },
                    {
                        path: '/shujuguanli/damoxing',
                        component: () =>
                            import(
                                '@/components/pages/shujuguanli/pages/damoxing/index.vue'
                            ),
                    }
                ],
                meta: {
                    requiresAuth: true,
                },
            },
        ],
    },
]
export { routerList }
